package com.scau.data.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.scau.data.entity.ShelfOKDO;
import org.apache.ibatis.annotations.Update;

public interface ShelfOKMapper extends BaseMapper<ShelfOKDO> {
    @Update("update shelf_ok set surplus = surplus - ${reduce} " +
            "where id = #{id}")
    Integer reduceSurplusById(Long id,Integer reduce);
}
